su
<template>
   
  <div>
    <el-table border :data="tableData" style="width: 100%" align="center">
      <el-table-column prop="name" label="企业名称" align="center">
      </el-table-column>
      <el-table-column prop="linkman" label="负责人" align="center">
      </el-table-column>
      <el-table-column prop="phone" label="负责人联系方式" align="center">
      </el-table-column>
      <el-table-column prop="registerAddress" label="注册地址" align="center">
      </el-table-column>
      <el-table-column prop="officeAddress" label="办公地址" align="center">
      </el-table-column>
      <el-table-column prop="createDate" label="填报时间" align="center">
      </el-table-column>
      <el-table-column label="企业状态" align="center">
        <template slot-scope="scope">
          <div>
            {{ companyStatusFormate("company_status-" + scope.row.status) }}
          </div>
        </template>
      </el-table-column>
      <el-table-column fixed="right" label="操作" width="100">
        <template slot-scope="scope">
          <el-button type="text" size="small" @click="audit(scope.row)" v-if="type=='audit'"
            >审核</el-button
          >
          <el-button type="text" size="small" @click="edit(scope.row)" v-if="type=='edit'"
            >订正审核</el-button
          >
          <el-button type="text" size="small" @click="view(scope.row)" v-if="type=='view'"
            >查看</el-button
          >
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
import utils from "@/utils/utils.js";
export default {
  name: "companyListTable",
  props: {
    tableData: {
      type: Array,
    },
    dict: {
      type: Object,
    },
    type: {
      type: String,
    },
  },
  computed: {},
  data() {
    return {};
  },
  methods: {
    audit(val) {
      this.$emit("audit", val);
    },

    edit(val) {
      this.$emit("edit", val);
    },

    view(data) {
      console.log("data--", data);
      this.$router.push({
        path: "/company/queryView",
        query: { companyId: data.id },
      });
    },

    companyStatusFormate(data) {
      return utils.selectDictLabel(this.dict.companyStatusDict, data);
    },
  },
};
</script>
<style scoped>
/deep/ .el-upload {
  text-align: left;
}
</style>


